<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-05-29 15:41:31
         compiled from "/home/wwwroot/default/sigclamav/templates/index.html" */ ?>
<?php /*%%SmartyHeaderCode:169751934255651491c009e7-80118689%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b112b42b846495faa72ab398e0dd3bf7bc0d7ac7' => 
    array (
      0 => '/home/wwwroot/default/sigclamav/templates/index.html',
      1 => 1432885278,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '169751934255651491c009e7-80118689',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_55651491c5a649_53389047',
  'variables' => 
  array (
    'scan_info' => 0,
    'val' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55651491c5a649_53389047')) {function content_55651491c5a649_53389047($_smarty_tpl) {?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>快速病毒扫描</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="这是一个病毒扫描网站，用户可以上传自己的文件，网站可以分析杀毒">
    <meta name="author" content="wubo">

    <!-- Le styles -->
    <?php echo '<script'; ?>
 type="text/javascript" src="js/jquery-1.8.3.min.js"><?php echo '</script'; ?>
>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="css/docs.css" rel="stylesheet">
    <?php echo '<script'; ?>
 type="text/javascript" src="js/layer.min.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="js/ichart.1.2.min.js"><?php echo '</script'; ?>
>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <?php echo '<script'; ?>
 src="js/html5shiv.js"><?php echo '</script'; ?>
>
    <![endif]-->
    <?php echo '<script'; ?>
>
	      $(function(){
				var data = [
				         	{
				         		name : 'clamav',
				         		
				         		value:[
                                      <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                                             <?php echo $_smarty_tpl->tpl_vars['val']->value['clameffi'];?>
,
                                      <?php } ?>
				         		],
				         		color:'#1385a5'
				         	},
				         	{
				         		name : 'sigclamav',
				         		value:[
				         		      <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                                         <?php echo $_smarty_tpl->tpl_vars['val']->value['sigeffi'];?>
,
                                     <?php } ?>
                                 ],
				         		color:'#c56966'
				         	}
				         ];
				var chart = new iChart.ColumnMulti2D({
						render : 'canvasDiv',
						data: data,
						labels:[
                             <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                                <?php echo $_smarty_tpl->tpl_vars['val']->value['filesize'];?>
,
                            <?php } ?>
                        ],
						title : '文件扫描速率对比',
						
						
						width : 550,
						height : 400,
						background_color : '#ffffff',
						legend:{
							enable:true,
							background_color : null,
							border : {
								enable : false
							}
						},
						coordinate:{
							background_color : '#f1f1f1',
							scale:[{
								 position:'left',	
								 start_scale:0,
								 end_scale:140,
								 scale_space:20
							}],
							width:400,
							height:260
						}
				});
				chart.draw();
			});
			

		   $(function(){
						var pv=[],ip=[],t;
						
						 <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                                 pv.push(<?php echo $_smarty_tpl->tpl_vars['val']->value['clamtime'];?>
)
                         <?php } ?>
                        	 <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                             pv.push(<?php echo $_smarty_tpl->tpl_vars['val']->value['clamtime'];?>
)
                     <?php } ?>
                         <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                             ip.push(<?php echo $_smarty_tpl->tpl_vars['val']->value['sigscantime'];?>
)
                         <?php } ?>
                        	 <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['scan_info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                             ip.push(<?php echo $_smarty_tpl->tpl_vars['val']->value['sigscantime'];?>
)
                         <?php } ?>
						
						
						var data = [
						         	{
						         		name : 'clamav',
						         		value:pv,
						         		color:'#0d8ecf',
						         		line_width:2
						         	},
						         	{
						         		name : 'sigclamav',
						         		value:ip,
						         		color:'#ef7707',
						         		line_width:2
						         	}
						         ];
				         
						var labels = [1,1024,5120,10240,30720,60000
                         ];
						var line = new iChart.LineBasic2D({
							render : 'canvasDiv1',
							data: data,
							align:'center',
							title : '文件扫描时间',

							width : 550,
							height : 400,
							tip:{
								enable:true,
								shadow:true
							},
							legend : {
								enable : true,
								row:1,//设置在一行上显示，与column配合使用
								column : 'max',
								valign:'top',
								sign:'bar',
								background_color:null,//设置透明背景
								offsetx:-80,//设置x轴偏移，满足位置需要
								border : true
							},
							crosshair:{
								enable:true,
								line_color:'#62bce9'
							},
							sub_option : {
								label:false,
								point_hollow : false
							},
							coordinate:{
								width:440,
								height:240,
								axis:{
									color:'#9f9f9f',
									width:[0,0,2,2]
								},
								grids:{
									vertical:{
										way:'share_alike',
								 		value:5
									}
								},
								scale:[{
									 position:'left',	
									 start_scale:0,
									 end_scale:100,
									 scale_space:30,
									 scale_size:2,
									 scale_color:'#9f9f9f'
								},{
									 position:'bottom',	
									 labels:labels
								}]
							}
						});
					
					//开始画图
					line.draw();
				});
				
		   function getPath(obj)    
		   {    
		     if(obj)    
		       {    
		      
		       if (navigator.userAgent.indexOf("MSIE")>=1)    
		         {    
		           obj.select();    
		      
		         return document.selection.createRange().text;    
		         }    
		      
		       else if(navigator.userAgent.indexOf("Firefox")>=1)    
		         {    
		         if(obj.files)    
		           {    
		        	 var objectURL = URL.createObjectURL(obj.files[0]);
		             return objectURL;    
		           }    
		         return obj.value;    
		         }    
		       return obj.value;    
		       }    
		   }    
		   //参数obj为input file对象 
		   
		   function showPreview(source) {  
            var file = source.files[0];  
            if(window.FileReader) {  
                var fr = new FileReader();  
                fr.onloadend = function(e) {  
                    alert(e.target.result);
                    document.getElementById("textfield").value = e.target.result;  
                };  
                fr.readAsDataURL(file);  
            }  
        }  

	      function getfile(source){
		         var f=source.files[0];
		         document.getElementById("textfield").value =f.name;
		         document.getElementById("filetype").value =f.type;
		         document.getElementById("filesize").value =f.size;
		   }
		   function checkval(){
			     var size=document.getElementById("filesize").value /1048576;
			     if (size>50){
				     alert("上传文件不可以大于50M");
				     return false;
				 }
			   //加载层-风格4
			    layer.load('文件正在上传，请耐心等待');
			     
			     return true;
		   }

    <?php echo '</script'; ?>
>
    
  </head>

  <body>

    <!-- Navbar
    ================================================== -->
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="index.php">FastAv</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active">
                <a href="index.php">首页</a>
              </li>
              <li class="">
                <a href="./getting-started.html">关于我们</a>
              </li>
              <li class="">
                <a href="./scaffolding.html">实验室</a>
              </li>
             
            </ul>
          </div>
        </div>
      </div>
    </div>

<div class="jumbotron masthead">
  <div class="container">
   <form action="scan.php" name="scanform" enctype="multipart/form-data" method="post" onSubmit="return checkval()">
    <h1>FastAv</h1>
    <p>快速，准确，基于clamav的病毒扫描系统</p>
    <div class="file-box">
      <input class="sc-input span5" type="text" value="" id="textfield"  name="textfield">
      <button class="navbar-btn btn-xser" type="button">选择文件</button>
      <input type="hidden" name="filetype" id="filetype" value=""> 
      <input type="hidden" name="filesize"  id="filesize"  value=""> 
      <input class="file" type="file" onchange="getfile(this)" name="file">
    </div>
    <p class="atten">最大文件大小为50M</p>
    <p>
      <button type="submit" class="btn btn-primary btn-large">上传扫描</button>
    </p>
    <ul class="masthead-links">
      <li>
        <a href="http://github.com/twitter/bootstrap" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
      </li>
      <li>
        <a href="./getting-started.html#examples" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Examples']);">实验室</a>
      </li>
      <li>
        <a href="./extend.html" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Extend']);">Extend</a>
      </li>
      <li>
        Version 1.0
      </li>
    </ul>
    </form>
  </div>
</div>

<div class="bs-docs-social">
  <div class="container">
    <ul class="bs-docs-social-buttons">
      <li>
        <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
      </li>
      <li>
        <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
      </li>
      <li class="follow-btn">
        <a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
      </li>
      <li class="tweet-btn">
        <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twbs.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
      </li>
    </ul>
  </div>
</div>


<div class="container">

  <div class="marketing">

    <h1>FastAv特点</h1>
    

    <div class="row-fluid">
      <div class="span4">
        <h2>创新</h2>
        <p>我们在开源的病毒扫描引擎clamav上进行改进，引入了一种过滤机制，将需要扫描的文件经过sigmatch过滤器过滤之后，交给clamav进行精确扫描，在不影响扫描准确率的情况下，加快了病毒扫描速度</p>
      </div>
      <div class="span4">
        <h2>快速</h2>
        <p>sigmatch过滤器采用sigtree+bloomfilter相结合的方式，具有快速地过滤能力</p>
      </div>
      <div class="span4">
        
        <h2>大数据</h2>
        <p>正因为我们的sigmatch的特点，扫描的文件越大，相对于clamav的扫描效果越好</p>
      </div>
    </div>

    <hr class="soften">

    <h1>性能分析图表</h1>
    <p class="marketing-byline">我们根据一定的数据样本，采用了clamav和sigclamav两种扫描方式，最终得出如下性能结果</p>
    <div class="row-fluid">
      <ul class="thumbnails example-sites">
        <li class="span6">
          <div id="canvasDiv">
          </div>
        </li>
        <li class="span6">
          <div id="canvasDiv1">
          </div>
        </li>
        
      </ul>
     </div>

  </div>

</div>

    <!-- Footer
    ================================================== -->
    <footer class="footer">
      <div class="container">
        <p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
        <p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
        <p><a href="http://glyphicons.com">Glyphicons Free</a> licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
        <ul class="footer-links">
          <li><a href="http://blog.getbootstrap.com">Blog</a></li>
          <li class="muted">&middot;</li>
          <li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
          <li class="muted">&middot;</li>
          <li><a href="https://github.com/twbs/bootstrap/releases">Changelog</a></li>
        </ul>
      </div>
    </footer>
   

  </body>
</html><?php }} ?>
